<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>待办事项管理</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <h1>待办事项管理</h1>
        
        <div class="todo-wrapper">
            <!-- 左侧输入区域 -->
            <div class="input-section">
                <h2>添加新任务</h2>
                <div class="input-group">
                    <input type="text" id="taskInput" placeholder="请输入任务内容..." maxlength="100">
                    <button id="addBtn" onclick="addTask()">添加</button>
                </div>
                <p class="tip">按 Enter 键也可以添加任务</p>
            </div>
            
            <!-- 右侧任务列表 -->
            <div class="list-section">
                <h2>任务列表</h2>
                <div id="taskList" class="task-list">
                    <p class="empty-message">暂无任务，快来添加第一个任务吧！</p>
                </div>
                <div class="stats">
                    <span id="totalTasks">总计：0 个任务</span>
                </div>
            </div>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>
